home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / prog / atari / c / nos042_s / bm.h < prev    next >
C/C++ Source or Header  |  1994-09-16  |  2KB  |  76 lines

  1. /****************************************************************************
  2. *    $Id: bm.h 1.3 93/07/16 11:43:01 ROOT_DOS Exp $
  3. *    08 May 93    1.2        GT    Fix warnings.                                    *
  4. *
  5. *    ATARI Version by David Nash - dnash@chaos.demon.co.uk
  6. *
  7. *  hide definition of struct mbx
  8. *
  9. ****************************************************************************/
  10. #ifndef _BM_H
  11. #define _BM_H
  12.  
  13. /* bm.h -- definitions for bmutil.c that aren't included elsewhere */
  14.  
  15. #ifdef ATARI
  16. struct mbx;            /* hide definition of strut mbx - defined in mailbox.h */
  17. #endif
  18.  
  19. #ifndef _SMTP_H
  20. #include "smtp.h"
  21. #endif
  22.  
  23. /* Header types */
  24. #define    NOHEADER     -1
  25. #define APPROVED    0
  26. #define    FROM        1
  27. #define    TO        2
  28. #define    DATE        3
  29. #define    MSGID        4
  30. #define    SUBJECT        5
  31. #define    RECEIVED    6
  32. #define    SENDER        7
  33. #define    REPLYTO        8
  34. #define STATUS        9
  35. #define BBSTYPE        10
  36. #define XFORWARD    11
  37. #define CC        12
  38. #define RRECEIPT    13
  39. #define APPARTO        14
  40. #define ERRORSTO    15
  41. #define ORGANIZATION    17
  42. #define    UNKNOWN        18
  43.  
  44. /* number of columns and lines on a standard display, e.g. vt100 */
  45. #define    MAXCOL        80
  46. #define MAXLIN        24
  47.  
  48. /* message status */
  49. #define    BM_DELETE    1
  50. #define    BM_READ        2
  51. #define    BM_FORWARDED    4
  52.  
  53. #define BM_NLET        200    /* default size of letter array */
  54.  
  55. #define SLINELEN    64
  56. #define LINELEN        256
  57.  
  58. extern unsigned Maxlet;        /* max messages */
  59. extern char *fgets();
  60. extern char *Hdrs[];
  61.  
  62. void scanmail __ARGS((struct mbx *m));
  63. int msgtofile __ARGS((struct mbx *m,int msg,FILE *tfile,int noheader));
  64. int closenotes __ARGS((struct mbx *m));
  65. int mbx_reply __ARGS((int argc,char *argv[],struct mbx *m,struct list **cclist,char **rhdr));
  66. long isnewprivmail __ARGS((struct mbx *m));
  67. int dolistnotes __ARGS((int argc,char *argv[],void *p));
  68. int isarea __ARGS((char *name));
  69. int dodelmsg __ARGS((int argc,char *argv[],void *p));
  70. int doreadmsg __ARGS((int argc,char *argv[],void *p));
  71. int doreadnext __ARGS((int argc,char *argv[],void *p));
  72. int htype __ARGS((char *s));
  73. char *getaddress __ARGS((char *string,int cont));
  74.  
  75. #endif  /* _BM_H */
  76.